package cn.gov.pbc.audit.bo;

import java.math.BigDecimal;
import java.util.List;

import cn.gov.pbc.audit.pojo.Loan;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class LoanSum implements Comparable<LoanSum>{

	private BigDecimal sum;
	
	private List<Loan> loanList;

	@Override
	public int compareTo(LoanSum another) {
		return -this.sum.compareTo(another.getSum());
	}
}
